From 0096cef2b3eb4882fd48c224be507968787abab7 Mon Sep 17 00:00:00 2001 From: Eamon Xiong Date: Mon, 17 Nov 2025 20:51:47 +0800 Subject: [PATCH] luci-theme-openwrt-2020: use arrow function Replaced L.bind with an arrow function for simpler syntax and clearer `this` binding. Signed-off-by: Eamon Xiong --- .../htdocs/luci-static/resources/menu-openwrt2020.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/luci-theme-openwrt-2020/htdocs/luci-static/resources/menu-openwrt2020.js b/themes/luci-theme-openwrt-2020/htdocs/luci-static/resources/menu-openwrt2020.js index e1e9a40680..6e66476202 100644 --- a/themes/luci-theme-openwrt-2020/htdocs/luci-static/resources/menu-openwrt2020.js +++ b/themes/luci-theme-openwrt-2020/htdocs/luci-static/resources/menu-openwrt2020.js @@ -4,7 +4,7 @@ return baseclass.extend({ __init__() { - ui.menu.load().then(L.bind(this.render, this)); + ui.menu.load().then((tree) => this.render(tree)); }, render(tree) { -- 2.30.2